package Reflect;

/**
 * Created by 86185 on 2019/7/21.
 */
class Person implements China{

    /*public Person(String name, int age) {
        this.age = age;
        this.name = name;
    }*/

   /* public Person() {

    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }
    @Override
    public String toString(){
        return "["+this.name+"  "+this.age+"]";
    }
    private String name;
    private int age;*/

    public Person(){
    }
    public Person(String sex){
        this.sex=sex;
    }
    public String getSex(){
        return  sex;
    }
    public void setSex(String sex){
        this.sex=sex;
    }
    @Override
    public void sayChina(){
        System.out.println("hello,china");
    }
    @Override
    public void sayHello(String name, int age) {
        System.out.println(name+"   "+age);
    }
    private String sex;
}



